Lesson 3 - Expressions quiz
Quiz
Is the following an expression or a statement?
x > 6
- statement
- expression
- both
Is the following a statement or an expression?
x = 4 + 5
- statement
- expression
- both
What does the following expression evaluate to?
14 > 15
- true
- false
What does the following expression print out?
x = 10
print x == x + 1
- true
- false
- error
Which of these are keywords?
- if
- print
- x > 10
- "hello"
Logic expression always evaluate to ...
- a value
- true or false
- a integer
- anything!